Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency GovUk.Frontend.AspNetCore to v2 #633

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 1, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
GovUk.Frontend.AspNetCore 1.5.0 -> 2.2.0 age adoption passing confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

gunndabad/govuk-frontend-aspnetcore (GovUk.Frontend.AspNetCore)

v2.2.0

Targets GOV.UK Frontend v5.2.0.

v2.1.0

Page template

The StaticAssetsContentPath and CompiledContentPath properties on GovUkFrontendOptions have been changed from string to PathString?.

The GenerateScriptImports, GenerateStyleImports and GetCspScriptHashes methods on PageTemplateHelper and the corresponding extension methods over IHtmlHelper
have had overloads added that take a PathString pathBase parameter.

The _GovUkPageTemplate.cshtml view has been fixed to respect HttpRequest.PathBase.

Middleware has been added to rewrite the URL references in all.min.css to respect HttpRequest.PathBase and the StaticAssetsContentPath.

v2.0.1

Page template

New overloads of GenerateScriptImports and GenerateStyleImports have been added that accept an appendVersion parameter.
This appends a query string with a hash of the file's contents so that content changes following upgrades are seen by end users.

A GetCspScriptHashes extension method on IHtmlHelper has been added that forwards to the same method on PageTemplateHelper.

v2.0.0

Targets GOV.UK Frontend v5.1.0.

New features
GOV.UK Frontend hosting options

Previously the GOV.UK Frontend library's assets were always hosted at the root of the application.
Many applications generate their own CSS and/or JavaScript bundles and don't need the standard versions at all, though they likely still need the static assets (fonts, images etc.).
There are now two properties on GovUkFrontendOptions to control the hosting of the static assets and the compiled assets - StaticAssetsContentPath (default /assets) and CompiledContentPath (default /govuk), respectively.
Applications that build and reference their own CSS and JavaScript can set CompiledContentPath to null to skip hosting the standard compiled assets. Similarly, setting StaticAssetsContentPath to null will skip hosting the static assets.

Page template

PageTemplateHelper and the _GovUkPageTemplate.cshtml view have been updated to respect the StaticAssetsContentPath and CompiledContentPath paths set on GovUkFrontendOptions.

An additional ViewData key can now be passed to _GovUkPageTemplate.cshtml - AssetPath. When specified, it will be used in place of the StaticAssetsContentPath value from GovUkFrontendOptions for referencing static asserts.

GovUkFrontendJsEnabledScript, GovUkFrontendScriptImports and GovUkFrontendStyleImports extension methods have been added over IHtmlHelper that wrap the
GenerateJsEnabledScript, GovUkFrontendScriptImports and GovUkFrontendStyleImports methods on PageTemplateHelper, respectively.

Tag helper changes

bool tag helper properties have been changed to bool?.
This is so that it's possible to differentiate between properties that have been explicitly initialized and those that have been left at the default values.
With this, other tag helpers or tag helper initializers can be created that assign default values to these properties.

Breaking changes
AddImportsToHtml

This option was used to automatically add style and JavaScript imports to all Razor views.
PageTemplateHelper and the _GovUkPageTemplate.cshtml layout view are better ways to generate a full page template now so this option, along with the backing tag helper component, have been removed.

Fixes
Page template

The og:image meta tag in the _GovUkPageTemplate.cshtml view is now an absolute URL.


Configuration

📅 Schedule: Branch creation - "before 4am on Monday" in timezone Europe/London, Automerge - "after 10am every weekday,before 4pm every weekday" in timezone Europe/London.

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/govuk.frontend.aspnetcore-2.x branch 3 times, most recently from 7fd7f75 to fdd45d4 Compare July 1, 2024 16:16
@renovate renovate bot force-pushed the renovate/govuk.frontend.aspnetcore-2.x branch 4 times, most recently from 814deeb to 21f17db Compare July 2, 2024 15:05
@renovate renovate bot force-pushed the renovate/govuk.frontend.aspnetcore-2.x branch 3 times, most recently from 2af0cef to c70d56b Compare July 4, 2024 12:21
@renovate renovate bot force-pushed the renovate/govuk.frontend.aspnetcore-2.x branch 4 times, most recently from 9c95e39 to bc0954a Compare July 10, 2024 19:46
@renovate renovate bot force-pushed the renovate/govuk.frontend.aspnetcore-2.x branch 5 times, most recently from 2a98de2 to 3b2bc80 Compare July 19, 2024 09:46
@renovate renovate bot force-pushed the renovate/govuk.frontend.aspnetcore-2.x branch 8 times, most recently from 5e0ff30 to 8e3197a Compare July 30, 2024 16:51
@renovate renovate bot force-pushed the renovate/govuk.frontend.aspnetcore-2.x branch 4 times, most recently from 84f1742 to 64a045a Compare September 4, 2024 13:08
@renovate renovate bot force-pushed the renovate/govuk.frontend.aspnetcore-2.x branch 4 times, most recently from 66e97bb to 6fcaed8 Compare September 16, 2024 14:03
@renovate renovate bot force-pushed the renovate/govuk.frontend.aspnetcore-2.x branch 9 times, most recently from 93b34f7 to d69242a Compare September 27, 2024 09:54
@renovate renovate bot force-pushed the renovate/govuk.frontend.aspnetcore-2.x branch 3 times, most recently from 608048b to bf0ea6c Compare October 16, 2024 09:57
@renovate renovate bot force-pushed the renovate/govuk.frontend.aspnetcore-2.x branch from bf0ea6c to aa80abb Compare October 16, 2024 10:01
Copy link

sonarcloud bot commented Oct 16, 2024

Copy link
Contributor Author

renovate bot commented Oct 16, 2024

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants